﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using System.IO;

namespace DSS_XNA.Engine.World.Worlds.RPGWorld
{
    public class TileSet
    {
        #region Properties

        public Texture2D Texture
        {
            get { return _texture; }
            set { _texture = value; }
        }
        private Texture2D _texture = null;

        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }
        private string _fileName = String.Empty;

        #endregion

        #region Public Methods

        public TileSet()
        {
        }

        public void Create(string fileName)
        {
            this.Destroy();

            this.FileName = fileName;
        }

        #endregion

        #region Private Methods

        private void Destroy()
        {
            if (this.Texture != null)
            {
                this.Texture.Dispose();
                this.Texture = null;
            }

            this.FileName = String.Empty;
        }

        #endregion
    }
}
